


with open ('tmp.txt') as f:
    lst = []
    for line in f:
        lst.append(line.strip())

    print(lst)
    print(sorted(lst)) 
    for line in sorted(lst):
        print(line)